<div data-dux="table-bind">
    <div class="dux-page-header am-cf">
        <div class="page-title">
            <form class="am-form-inline" method="get" action="{url()}">
                <div class="am-form-group">
                    <input type="text" name="username" class="am-form-field" value="{$pageMaps.username}" placeholder="搜索">
                </div>
                <div class="am-form-group">
                    <select name="sale_status" class="am-form-field">
                        <option value="0">全部状态</option>
                        <option value="1" {$pageMaps.status == 1 ? 'selected' : ''} >待完成</option>
                        <option value="2" {$pageMaps.status == 2 ? 'selected' : ''} >已完成</option>
                        <option value="3" {$pageMaps.status == 3 ? 'selected' : ''} >已取消</option>
                    </select>
                </div>
                <div class="am-form-group">
                    <button type="submit" class="am-btn am-btn-primary am-icon-search"></button>
                </div>
            </form>
        </div>
        <div class="page-action">
            <a class="am-btn am-btn-danger" href="javascript:location.reload();"><i class="am-icon-refresh"></i></a>
        </div>
    </div>
    <div class="dux-page-table">
        <table class="am-table dux-table" data-table>
            <thead>
            <tr>
                <th colspan="2">商品</th>
                <th>商品总额</th>
                <th>下单用户</th>
                <th>佣金</th>
                <th>返利层级</th>
                <th>返利用户</th>
                <th width="170">返利时间</th>
                <th class="am-text-center">返利状态</th>
            </tr>
            </thead>
            <tbody>
            <!--loop{$list as $vo}-->
            <tr>
                <td width="65">
                    <a href="{$vo.goods_url}" target="_blank"><img src="{$vo.goods_image}" alt="" width="60" height="60"></a>
                </td>
                <td>
                    <a href="{$vo.goods_url}" target="_blank">{$vo.goods_name}</a>
                    <div>
                        ￥{$vo.goods_price}*{$vo.goods_qty}
                    </div>
                    <div>
                        <!--if{$vo.goods_options}-->
                        <!--loop{$vo.goods_options as $v}-->
                        {$v.name}:{$v.value}
                        <!--{/loop}-->
                        <!--{/if}-->
                    </div>
                </td>
                <td>
                    <div class="am-text-danger">
                        ￥{$vo.price_total}
                    </div>
                </td>
                <td><a data-dux="dialog-open" data-url="{url('member/MemberUser/dialogUser', ['id' => $vo.order_user_id])}" data-title="用户信息" data-height="250px" href="javascript:;">{$vo.order_show_name}</a></td>
                <td>
                    <div class="am-text-danger">
                        ￥{$vo.sale_money}
                    </div>
                </td>
                <td>
                    <div class="am-text-success">
                        {$vo.level}级
                    </div>
                </td>
                <td><a data-dux="dialog-open" data-url="{url('member/MemberUser/dialogUser', ['id' => $vo.user_id])}" data-title="用户信息" data-height="250px" href="javascript:;">{$vo.show_name}</a></td>
                <td>
                    {date('Y-m-d H:i:s', $vo.create_time)}
                    <br>
                    <!--if{$vo.complete_time}-->
                    {date('Y-m-d H:i:s', $vo.complete_time)}
                    <!--{else}-->
                    未完成
                    <!--{/if}-->
                </td>
                <!--if{!$vo.sale_status}-->
                <td class="am-text-center am-danger">
                    取消
                </td>
                <!--{/if}-->

                <!--if{$vo.sale_status == 1}-->
                <td class="am-text-center am-warning">
                    待完成
                </td>
                <!--{/if}-->

                <!--if{$vo.sale_status == 2}-->
                <td class="am-text-center am-success">
                    已完成
                </td>
                <!--{/if}-->
            </tr>
            <!--{/loop}-->
            <!--if{empty($list)}-->
            <tr>
                <td colspan="8" class="am-text-center">暂无分销账户</td>
            </tr>
            <!--{/if}-->
            </tbody>
        </table>
    </div>
    <div class="dux-page-foot am-cf">
        {$page}
    </div>
</div>